package ecstore.client.dataOperation;

import java.io.Serializable;



/**
 * This class is a map for the server side Item class 
 * @author smaxll
 *
 */

public class ItemInfo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String keyString;
	private String name;
    
    private float price;
    
    private String size;
    
    private String description;
    
    private String category;
    
    private String brand;
    
    private String imageLocation;
    
    private String thImageLocation;
    

    private int windowNum;
    private int posRow;
    private int posCol;
    
    private int stock;
    private int recmdStock;
    
    public ItemInfo(){
    }
    
    public ItemInfo(String itemCategory, String itemBrand, 
    		String itemName, float itemPrice, String itemSize, String itemDescription,
    		String itemThumbnail, String itemImage, int itemStock, int itemRecmdStock
    		){
    	category = itemCategory;
    	brand = itemBrand;
    	name = itemName;
    	price = itemPrice;
    	size = itemSize;
    	description = itemDescription;
    	thImageLocation = itemThumbnail;
    	imageLocation = itemImage;
    	stock = itemStock;
    	recmdStock = itemRecmdStock;
    }
    

    public ItemInfo(String itemCategory, String itemBrand, 
    		String itemName, float itemPrice, String itemSize, String itemDescription,
    		String itemThumbnail, String itemImage, int window, int row, int col, int itemStock, int itemRecmdStock
    		){
    	category = itemCategory;
    	brand = itemBrand;
    	name = itemName;
    	price = itemPrice;
    	size = itemSize;
    	description = itemDescription;
    	thImageLocation = itemThumbnail;
    	imageLocation = itemImage;
    	windowNum = window;
    	posRow = row;
    	posCol = col;
    	stock = itemStock;
    	recmdStock = itemRecmdStock;
    }
    
    
    public String getKeyString(){
    	return keyString;
    }
    
    public String getName(){
    	return name;
    }
    
    public float getPrice(){
    	return price;
    }
    
    public String getSize(){
    	return size;
    }
    
    public String getDescription(){
    	return description;
    }
    
    public String getCategory(){
    	return category;
    }
    
    public String getBrand(){
    	return brand;
    }
    
    public String getThumbnail(){
    	return thImageLocation;
    }
    
    public String getImage(){
    	return imageLocation;
    }
    
    public int getWindowNum(){
    	return windowNum;
    }
    
    public int getRowNum(){
    	return posRow;
    }
    
    public int getColNum(){
    	return posCol;
    }
    
    public int getStock(){
    	return stock;
    }
    
    public int getRecmdStock(){
    	return recmdStock;
    }
    
    /*
     * methods to change item infomation
     */
    
    /*
     * This method can only be used once, as the key cannot be changed
     * but not available before the Item is saved to the datastore
     */
    public void setKeyString(String newKeyString){
    	keyString = newKeyString;
    }
    
    public void setCategory(String newCategory){
    	category = newCategory;
    }
    
    public void setPrice(float newPrice){
    	price = newPrice;
    }
    
    public void setName(String newName){
    	name = newName;
    }
    
    public void setSize(String newSize){
    	size = newSize;
    }
    
    public void setDescription(String newDescription){
    	description = newDescription;
    }
    
    
    public void setBrand(String newBrand){
    	brand = newBrand;
    }
    
    public void setThumbnail(String newThumbnail){
    	thImageLocation = newThumbnail;
    }
    
    public void setImage(String newImage){
    	imageLocation = newImage;
    }
    
    public void setWindowNum(int newWindowNum){
    	windowNum = newWindowNum;
    }
    
    public void setRowNum(int newRowNum){
    	posRow = newRowNum;
    }
    
    public void setColNum(int newColNum){
    	posCol = newColNum;
    }
    
    public void setStock(int newStock){
    	stock = newStock;
    }
    
    public void setRecmdStock(int newRecmdStock){
    	recmdStock = newRecmdStock;
    }

}

